const {defineConfig} = require('@vue/cli-service')
const webpack = require("webpack");
module.exports = defineConfig({
    devServer: {
        // 端口号的配置
        port: 1024,
        proxy: {
            '/local': {
                target: 'http://127.0.0.1:8887/api/author/status', // url:需要代理的域名，也就是联调接口的域名
                changeOrigin: true, // 需要跨域要配置为true
                pathRewrite: {
                    '^/local': ''  // 类似替换字符串，将/local字符替换为空
                }
            },
            // 端口号的配置
        },
    },
    transpileDependencies: true,
    lintOnSave: false,
    configureWebpack: {
        plugins: [
            new webpack.ProvidePlugin({
                $: "jquery",
                jQuery: "jquery",
                "windows.jQuery": "jquery"
            })
        ]
    }
})


